reflect.Value.Set (method)
37 uses
reflect (current package)
value.go#L453: slice.Index(i).Set(x)
value.go#L2309: func (v Value) Set(x Value) {
value.go#L2953: s.Index(n + i).Set(v)
encoding/asn1
asn1.go#L738: v.Set(reflect.ValueOf(result))
asn1.go#L929: val.Field(0).Set(reflect.ValueOf(RawContent(bytes)))
asn1.go#L950: val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
asn1.go#L956: val.Set(newSlice)
encoding/json
decode.go#L476: v.Set(reflect.New(v.Type().Elem()))
decode.go#L522: v.Set(reflect.ValueOf(ai))
decode.go#L588: v.Set(reflect.MakeSlice(v.Type(), 0, 0))
decode.go#L617: v.Set(reflect.ValueOf(oi))
decode.go#L643: v.Set(reflect.MakeMap(t))
decode.go#L716: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L916: v.Set(reflect.ValueOf(value))
decode.go#L953: v.Set(reflect.ValueOf(string(s)))
decode.go#L988: v.Set(reflect.ValueOf(n))
fmt
scan.go#L1040: v.Set(reflect.MakeSlice(typ, len(str), len(str)))
github.com/oapi-codegen/runtime
bindform.go#L137: v.Set(ptrData)
bindform.go#L147: v.Set(reflect.ValueOf(result))
bindform.go#L165: v.Set(result)
bindform.go#L172: v.Set(reflect.ValueOf(file))
bindform.go#L284: additionalProperties.Set(result)
bindparam.go#L247: v.Set(newArray)
bindparam.go#L420: dv.Set(reflect.ValueOf(output))
bindparam.go#L460: dv.Set(reflect.ValueOf(output))
bindstring.go#L48: v.Set(reflect.New(t.Elem()))
bindstring.go#L137: v.Set(reflect.ValueOf(parsedTime))
bindstring.go#L159: v.Set(reflect.ValueOf(parsedDate))
deepobject.go#L214: iv.Set(dstMap)
deepobject.go#L223: iv.Set(dstSlice)
deepobject.go#L250: dst.Set(reflect.ValueOf(date))
deepobject.go#L272: dst.Set(reflect.ValueOf(tm))
deepobject.go#L299: iv.Set(dstVal)
net/http
h2_error.go#L34: df.Set(src.Field(i).Convert(df.Type()))
net/http/httptrace
trace.go#L193: tf.Set(of)
trace.go#L206: tv.Field(i).Set(newFunc)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L693: reflect.ValueOf(out).Elem().Set(reflect.ValueOf(defaultValue))
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |